//
//  OrderPost.swift
//  FeastBooking
//
//  Created by Imon on 2017/10/19.
//  Copyright © 2017年 Imon. All rights reserved.
//

import Foundation
import ObjectMapper

class OrderPost: Mappable {
    var banquetHallId: Int?
    var candidateDates: String?
    var contact: String?
    var phone: String?
    var recommender: String?
    var tables: Int?
    var totp: String?
    
    required init?(map: Map) {
        
    }
    
    init(banquetHallId: Int, candidateDates: String, contact: String, phone: String, recommender: String, tables: Int, totp: String) {
        self.banquetHallId = banquetHallId
        self.candidateDates = candidateDates
        self.contact = contact
        self.phone = phone
        self.recommender = recommender
        self.tables = tables
        self.totp = totp
    }
    
    func mapping(map: Map) {
        banquetHallId <- map["banquetHallId"]
        candidateDates <- map["candidateDates"]
        contact <- map["contact"]
        phone <- map["phone"]
        recommender <- map["recommender"]
        tables <- map["tables"]
        totp <- map["totp"]
    }
}
